<template>
  <v-container>
    <v-row>
      <v-col>
        <v-card>
          <v-card-text>
            <v-alert outlined type="warning" prominent border="left">
              模拟样例 学校的追求与被追求 张三 找 李四 追求 李娇娇
            </v-alert>
          </v-card-text>
        </v-card>
      </v-col>
    </v-row>
    <v-row>
      <v-col>
        <v-card>
          <v-card-text class="mt-2">
            <v-row>
              <v-col v-for="(d, index) in gifts" :key="index" cols="12">
                {{ d }}
              </v-col>
            </v-row>
          </v-card-text>
        </v-card>
      </v-col>
    </v-row>
  </v-container>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import { Pursuit, SchoolGirl } from "@/design-pattern/07-proxy/ProxyV1";

@Component({})
export default class PageV1 extends Vue {
  // region Prop
  // endregion
  // region Data
  gifts: string[] = [];
  // endregion
  // region computed
  // endregion
  // region watch
  // endregion
  // region method
  // endregion
  // region hook
  created() {
    const jiaojiao = new SchoolGirl();
    jiaojiao.Name = "李娇娇";

    const zhangsan = new Pursuit(jiaojiao);

    this.gifts.push(zhangsan.GiveChocolate());
    this.gifts.push(zhangsan.GiveDolls());
    this.gifts.push(zhangsan.GiveFlowers());
  }
  // endregion
}
</script>

<style lang="scss"></style>
